import {Component, OnInit, Input, OnChanges} from '@angular/core';
import {NzMessageService} from "ng-zorro-antd";
import {FetchService} from "../../../../core/net/fetch.service";
import {FormBuilder, FormGroup} from "@angular/forms";

@Component({
  selector: "app-dm-panel",
  templateUrl: "./dm-panel.component.html",
  styleUrls: ["./dm-panel.component.scss"]
})
export class DmPanelComponent implements OnInit {
  recordTableData = [];
  total: number;
  pageNum = 1;
  pageSize = 13;
  loading = false;
  searchForm: FormGroup;

  constructor(
    private message: NzMessageService,
    private fetchService: FetchService,
    private fb: FormBuilder
  ) {
    this.searchForm = this.fb.group({
      key: ['']
    });
  }

  ngOnInit() {
    this.queryInfo();
  }

  queryInfo(): void {
    this.fetchService.post<any>("intake/wrsBrwaterDitch/listLast", {}).subscribe(res => {
        this.recordTableData = res.list;
      });
  }

}
